package com.zt.ztyh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName ztyh_recording
 */
@TableName(value ="ztyh_recording")
@Data
public class ZtyhRecording implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 交易发起人
     */
    @TableField(value = "moneyOut")
    private Long moneyout;

    /**
     * 交易接受人
     */
    @TableField(value = "moneyIn")
    private Long moneyin;

    /**
     * 交易金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 操作类型1.提现 2.充值 3.转账
     */
    @TableField(value = "operatorType")
    private Integer operatortype;

    /**
     *
     */
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH.mm.ss")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH.mm.ss")
    private Date updateTime;

    /**
     * 记录状态
     */
    @TableField(value = "state")
    private Integer state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
